package cn.broadcasereceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class MidReceiver extends BroadcastReceiver{
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.e("MidReceiver","onReceive");
        Bundle bundle = getResultExtras(true);
        String name = bundle.getString("NAME");
        int age = bundle.getInt("AGE");
        Log.e("MidReceiver","上个接受者的名字"+name+" 年龄"+age);
        bundle.putString("NAME","reba");
        bundle.putInt("AGE",26);
        setResultExtras(bundle);
    }
}
